+Sat Jul 3 01:48:19 2004 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtkentry.c (gtk_entry_move_visually): Let the cursor move
+ to the right end of the entry text, even if it ends in combining
+ marks. (#141728, Theppitak Karoonboonyanan)
+
Fri Jul 2 23:34:33 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcombobox.c (gtk_combo_box_unset_model): Unset the displayed
+Sat Jul 3 01:48:19 2004 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtkentry.c (gtk_entry_move_visually): Let the cursor move
+ to the right end of the entry text, even if it ends in combining
+ marks. (#141728, Theppitak Karoonboonyanan)
+
Fri Jul 2 23:34:33 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcombobox.c (gtk_combo_box_unset_model): Unset the displayed
+Sat Jul 3 01:48:19 2004 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtkentry.c (gtk_entry_move_visually): Let the cursor move
+ to the right end of the entry text, even if it ends in combining
+ marks. (#141728, Theppitak Karoonboonyanan)
+
Fri Jul 2 23:34:33 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcombobox.c (gtk_combo_box_unset_model): Unset the displayed
+Sat Jul 3 01:48:19 2004 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtkentry.c (gtk_entry_move_visually): Let the cursor move
+ to the right end of the entry text, even if it ends in combining
+ marks. (#141728, Theppitak Karoonboonyanan)
+
Fri Jul 2 23:34:33 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcombobox.c (gtk_combo_box_unset_model): Unset the displayed
count++;
}
- if (new_index < 0 || new_index == G_MAXINT)
- break;
-
- index = new_index;
+ if (new_index < 0)
+ index = 0;
+ else if (new_index != G_MAXINT)
+ index = new_index;
while (new_trailing--)
- index = g_utf8_next_char (text + new_index) - text;
+ index = g_utf8_next_char (text + index) - text;
}
return g_utf8_pointer_to_offset (text, text + index);